package org.vshe.improve.spring.prospring3.ch6;

import java.lang.reflect.Method;

import org.springframework.aop.ClassFilter;
import org.springframework.aop.support.StaticMethodMatcherPointcut;

public class SimplePointcut extends StaticMethodMatcherPointcut {
	
	public SimplePointcut() {
		super();	
	}

	
	@Override
	public ClassFilter getClassFilter() {		
		return new ClassFilter() {
			public boolean matches(Class<?> clazz) {
				return clazz == BeanOne.class;
			}
		};
	}
	
	public boolean matches(Method method, Class<?> targetClass) {		
		return true;
	}

}
